3.1.47 \(\int \frac {(c+d x)^2}{a+b (F^{g (e+f x)})^n} \, dx\) [47]

Optimal. Leaf size=145 \[ \frac {(c+d x)^3}{3 a d}-\frac {(c+d x)^2 \log \left (1+\frac {b \left (F^{g (e+f x)}\right )^n}{a}\right )}{a f g n \log (F)}-\frac {2 d (c+d x) \text {Li}_2\left (-\frac {b \left (F^{g (e+f x)}\right )^n}{a}\right )}{a f^2 g^2 n^2 \log ^2(F)}+\frac {2 d^2 \text {Li}_3\left (-\frac {b \left (F^{g (e+f x)}\right )^n}{a}\right )}{a f^3 g^3 n^3 \log ^3(F)} \]

[Out]

1/3*(d*x+c)^3/a/d-(d*x+c)^2*ln(1+b*(F^(g*(f*x+e)))^n/a)/a/f/g/n/ln(F)-2*d*(d*x+c)*polylog(2,-b*(F^(g*(f*x+e)))
^n/a)/a/f^2/g^2/n^2/ln(F)^2+2*d^2*polylog(3,-b*(F^(g*(f*x+e)))^n/a)/a/f^3/g^3/n^3/ln(F)^3

________________________________________________________________________________________

Rubi [A]
time = 0.20, antiderivative size = 145, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2215, 2221, 2611, 2320, 6724} \begin {gather*} -\frac {2 d (c+d x) \text {PolyLog}\left (2,-\frac {b \left (F^{g (e+f x)}\right )^n}{a}\right )}{a f^2 g^2 n^2 \log ^2(F)}+\frac {2 d^2 \text {PolyLog}\left (3,-\frac {b \left (F^{g (e+f x)}\right )^n}{a}\right )}{a f^3 g^3 n^3 \log ^3(F)}-\frac {(c+d x)^2 \log \left (\frac {b \left (F^{g (e+f x)}\right )^n}{a}+1\right )}{a f g n \log (F)}+\frac {(c+d x)^3}{3 a d} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(c + d*x)^2/(a + b*(F^(g*(e + f*x)))^n),x]

[Out]

(c + d*x)^3/(3*a*d) - ((c + d*x)^2*Log[1 + (b*(F^(g*(e + f*x)))^n)/a])/(a*f*g*n*Log[F]) - (2*d*(c + d*x)*PolyL
og[2, -((b*(F^(g*(e + f*x)))^n)/a)])/(a*f^2*g^2*n^2*Log[F]^2) + (2*d^2*PolyLog[3, -((b*(F^(g*(e + f*x)))^n)/a)
])/(a*f^3*g^3*n^3*Log[F]^3)

Rule 2215

Int[((c_.) + (d_.)*(x_))^(m_.)/((a_) + (b_.)*((F_)^((g_.)*((e_.) + (f_.)*(x_))))^(n_.)), x_Symbol] :> Simp[(c
+ d*x)^(m + 1)/(a*d*(m + 1)), x] - Dist[b/a, Int[(c + d*x)^m*((F^(g*(e + f*x)))^n/(a + b*(F^(g*(e + f*x)))^n))
, x], x] /; FreeQ[{F, a, b, c, d, e, f, g, n}, x] && IGtQ[m, 0]

Rule 2221

Int[(((F_)^((g_.)*((e_.) + (f_.)*(x_))))^(n_.)*((c_.) + (d_.)*(x_))^(m_.))/((a_) + (b_.)*((F_)^((g_.)*((e_.) +
 (f_.)*(x_))))^(n_.)), x_Symbol] :> Simp[((c + d*x)^m/(b*f*g*n*Log[F]))*Log[1 + b*((F^(g*(e + f*x)))^n/a)], x]
 - Dist[d*(m/(b*f*g*n*Log[F])), Int[(c + d*x)^(m - 1)*Log[1 + b*((F^(g*(e + f*x)))^n/a)], x], x] /; FreeQ[{F,
a, b, c, d, e, f, g, n}, x] && IGtQ[m, 0]

Rule 2320

Int[u_, x_Symbol] :> With[{v = FunctionOfExponential[u, x]}, Dist[v/D[v, x], Subst[Int[FunctionOfExponentialFu
nction[u, x]/x, x], x, v], x]] /; FunctionOfExponentialQ[u, x] &&  !MatchQ[u, (w_)*((a_.)*(v_)^(n_))^(m_) /; F
reeQ[{a, m, n}, x] && IntegerQ[m*n]] &&  !MatchQ[u, E^((c_.)*((a_.) + (b_.)*x))*(F_)[v_] /; FreeQ[{a, b, c}, x
] && InverseFunctionQ[F[x]]]

Rule 2611

Int[Log[1 + (e_.)*((F_)^((c_.)*((a_.) + (b_.)*(x_))))^(n_.)]*((f_.) + (g_.)*(x_))^(m_.), x_Symbol] :> Simp[(-(
f + g*x)^m)*(PolyLog[2, (-e)*(F^(c*(a + b*x)))^n]/(b*c*n*Log[F])), x] + Dist[g*(m/(b*c*n*Log[F])), Int[(f + g*
x)^(m - 1)*PolyLog[2, (-e)*(F^(c*(a + b*x)))^n], x], x] /; FreeQ[{F, a, b, c, e, f, g, n}, x] && GtQ[m, 0]

Rule 6724

Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[PolyLog[n + 1, c*(a
+ b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d, e, n, p}, x] && EqQ[b*d, a*e]

Rubi steps

\begin {align*} \int \frac {(c+d x)^2}{a+b \left (F^{g (e+f x)}\right )^n} \, dx &=\frac {(c+d x)^3}{3 a d}-\frac {b \int \frac {\left (F^{g (e+f x)}\right )^n (c+d x)^2}{a+b \left (F^{g (e+f x)}\right )^n} \, dx}{a}\\ &=\frac {(c+d x)^3}{3 a d}-\frac {(c+d x)^2 \log \left (1+\frac {b \left (F^{g (e+f x)}\right )^n}{a}\right )}{a f g n \log (F)}+\frac {(2 d) \int (c+d x) \log \left (1+\frac {b \left (F^{g (e+f x)}\right )^n}{a}\right ) \, dx}{a f g n \log (F)}\\ &=\frac {(c+d x)^3}{3 a d}-\frac {(c+d x)^2 \log \left (1+\frac {b \left (F^{g (e+f x)}\right )^n}{a}\right )}{a f g n \log (F)}-\frac {2 d (c+d x) \text {Li}_2\left (-\frac {b \left (F^{g (e+f x)}\right )^n}{a}\right )}{a f^2 g^2 n^2 \log ^2(F)}+\frac {\left (2 d^2\right ) \int \text {Li}_2\left (-\frac {b \left (F^{g (e+f x)}\right )^n}{a}\right ) \, dx}{a f^2 g^2 n^2 \log ^2(F)}\\ &=\frac {(c+d x)^3}{3 a d}-\frac {(c+d x)^2 \log \left (1+\frac {b \left (F^{g (e+f x)}\right )^n}{a}\right )}{a f g n \log (F)}-\frac {2 d (c+d x) \text {Li}_2\left (-\frac {b \left (F^{g (e+f x)}\right )^n}{a}\right )}{a f^2 g^2 n^2 \log ^2(F)}+\frac {\left (2 d^2\right ) \text {Subst}\left (\int \frac {\text {Li}_2\left (-\frac {b x^n}{a}\right )}{x} \, dx,x,F^{g (e+f x)}\right )}{a f^3 g^3 n^2 \log ^3(F)}\\ &=\frac {(c+d x)^3}{3 a d}-\frac {(c+d x)^2 \log \left (1+\frac {b \left (F^{g (e+f x)}\right )^n}{a}\right )}{a f g n \log (F)}-\frac {2 d (c+d x) \text {Li}_2\left (-\frac {b \left (F^{g (e+f x)}\right )^n}{a}\right )}{a f^2 g^2 n^2 \log ^2(F)}+\frac {2 d^2 \text {Li}_3\left (-\frac {b \left (F^{g (e+f x)}\right )^n}{a}\right )}{a f^3 g^3 n^3 \log ^3(F)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.49, size = 121, normalized size = 0.83 \begin {gather*} \frac {-f^2 g^2 n^2 (c+d x)^2 \log ^2(F) \log \left (1+\frac {a \left (F^{g (e+f x)}\right )^{-n}}{b}\right )+2 d f g n (c+d x) \log (F) \text {Li}_2\left (-\frac {a \left (F^{g (e+f x)}\right )^{-n}}{b}\right )+2 d^2 \text {Li}_3\left (-\frac {a \left (F^{g (e+f x)}\right )^{-n}}{b}\right )}{a f^3 g^3 n^3 \log ^3(F)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(c + d*x)^2/(a + b*(F^(g*(e + f*x)))^n),x]

[Out]

(-(f^2*g^2*n^2*(c + d*x)^2*Log[F]^2*Log[1 + a/(b*(F^(g*(e + f*x)))^n)]) + 2*d*f*g*n*(c + d*x)*Log[F]*PolyLog[2
, -(a/(b*(F^(g*(e + f*x)))^n))] + 2*d^2*PolyLog[3, -(a/(b*(F^(g*(e + f*x)))^n))])/(a*f^3*g^3*n^3*Log[F]^3)

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1676\) vs. \(2(143)=286\).
time = 0.07, size = 1677, normalized size = 11.57

method result size
risch \(\text {Expression too large to display}\) \(1677\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((d*x+c)^2/(a+b*(F^(g*(f*x+e)))^n),x,method=_RETURNVERBOSE)

[Out]

2/ln(F)^3/f^3/g^3/n^3*d^2/a*polylog(3,-b*F^(n*g*f*x)*F^(-n*g*f*x)*(F^(g*(f*x+e)))^n/a)-2/3/ln(F)^3/f^3/g^3*d^2
/a*ln(F^(g*(f*x+e)))^3-1/ln(F)^2/f^2/g^2*d^2*(ln(F^(g*(f*x+e)))-g*(f*x+e)*ln(F))^2/a*x+1/ln(F)/f/g/n*c^2/a*ln(
F^(n*g*f*x)*F^(-n*g*f*x)*(F^(g*(f*x+e)))^n)-1/ln(F)/f/g/n*c^2/a*ln(a+b*F^(n*g*f*x)*F^(-n*g*f*x)*(F^(g*(f*x+e))
)^n)+2/f*c*d/a*x*e+1/ln(F)^2/f^2/g^2*c*d/a*ln(F^(g*(f*x+e)))^2+2*c*d/a*x^2-2/ln(F)/f/g*d^2/a*ln(F^(g*(f*x+e)))
*x^2+2/ln(F)^2/f^2/g^2*d^2/a*ln(F^(g*(f*x+e)))^2*x-2/ln(F)^2/f^3/g^2/n*d^2*e*(ln(F^(g*(f*x+e)))-g*(f*x+e)*ln(F
))/a*ln(a+b*F^(n*g*f*x)*F^(-n*g*f*x)*(F^(g*(f*x+e)))^n)-2/ln(F)/f^2/g/n*c*d*e/a*ln(F^(n*g*f*x)*F^(-n*g*f*x)*(F
^(g*(f*x+e)))^n)+2/ln(F)/f^2/g/n*c*d*e/a*ln(a+b*F^(n*g*f*x)*F^(-n*g*f*x)*(F^(g*(f*x+e)))^n)+2/ln(F)^2/f^3/g^2/
n*d^2/a*ln(1+b*F^(n*g*f*x)*F^(-n*g*f*x)*(F^(g*(f*x+e)))^n/a)*e*(ln(F^(g*(f*x+e)))-g*(f*x+e)*ln(F))-2/ln(F)^2/f
^2/g^2/n*c*d*(ln(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(F)/f^2/g/n*c*d/a*ln(1+b*F^(n*g*f*x)*F^(
-n*g*f*x)*(F^(g*(f*x+e)))^n/a)*e+1/ln(F)/f^3/g/n*d^2*e^2/a*ln(F^(n*g*f*x)*F^(-n*g*f*x)*(F^(g*(f*x+e)))^n)-1/ln
(F)/f^3/g/n*d^2*e^2/a*ln(a+b*F^(n*g*f*x)*F^(-n*g*f*x)*(F^(g*(f*x+e)))^n)-2/ln(F)^2/f^2/g^2/n^2*c*d/a*polylog(2
,-b*F^(n*g*f*x)*F^(-n*g*f*x)*(F^(g*(f*x+e)))^n/a)+1/ln(F)^3/f^3/g^3/n*d^2*(ln(F^(g*(f*x+e)))-g*(f*x+e)*ln(F))^
2/a*ln(F^(n*g*f*x)*F^(-n*g*f*x)*(F^(g*(f*x+e)))^n)-1/ln(F)^3/f^3/g^3/n*d^2*(ln(F^(g*(f*x+e)))-g*(f*x+e)*ln(F))
^2/a*ln(a+b*F^(n*g*f*x)*F^(-n*g*f*x)*(F^(g*(f*x+e)))^n)

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 310 vs. \(2 (145) = 290\).
time = 0.41, size = 310, normalized size = 2.14 \begin {gather*} c^{2} {\left (\frac {f g n x + g n e}{a f g n} - \frac {\log \left (F^{f g n x + g n e} b + a\right )}{a f g n \log \left (F\right )}\right )} - \frac {2 \, {\left (f g n x \log \left (\frac {F^{f g n x} F^{g n e} b}{a} + 1\right ) \log \left (F\right ) + {\rm Li}_2\left (-\frac {F^{f g n x} F^{g n e} b}{a}\right )\right )} c d}{a f^{2} g^{2} n^{2} \log \left (F\right )^{2}} - \frac {{\left (f^{2} g^{2} n^{2} x^{2} \log \left (\frac {F^{f g n x} F^{g n e} b}{a} + 1\right ) \log \left (F\right )^{2} + 2 \, f g n x {\rm Li}_2\left (-\frac {F^{f g n x} F^{g n e} b}{a}\right ) \log \left (F\right ) - 2 \, {\rm Li}_{3}(-\frac {F^{f g n x} F^{g n e} b}{a})\right )} d^{2}}{a f^{3} g^{3} n^{3} \log \left (F\right )^{3}} + \frac {d^{2} f^{3} g^{3} n^{3} x^{3} \log \left (F\right )^{3} + 3 \, c d f^{3} g^{3} n^{3} x^{2} \log \left (F\right )^{3}}{3 \, a f^{3} g^{3} n^{3} \log \left (F\right )^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x+c)^2/(a+b*(F^(g*(f*x+e)))^n),x, algorithm="maxima")

[Out]

c^2*((f*g*n*x + g*n*e)/(a*f*g*n) - log(F^(f*g*n*x + g*n*e)*b + a)/(a*f*g*n*log(F))) - 2*(f*g*n*x*log(F^(f*g*n*
x)*F^(g*n*e)*b/a + 1)*log(F) + dilog(-F^(f*g*n*x)*F^(g*n*e)*b/a))*c*d/(a*f^2*g^2*n^2*log(F)^2) - (f^2*g^2*n^2*
x^2*log(F^(f*g*n*x)*F^(g*n*e)*b/a + 1)*log(F)^2 + 2*f*g*n*x*dilog(-F^(f*g*n*x)*F^(g*n*e)*b/a)*log(F) - 2*polyl
og(3, -F^(f*g*n*x)*F^(g*n*e)*b/a))*d^2/(a*f^3*g^3*n^3*log(F)^3) + 1/3*(d^2*f^3*g^3*n^3*x^3*log(F)^3 + 3*c*d*f^
3*g^3*n^3*x^2*log(F)^3)/(a*f^3*g^3*n^3*log(F)^3)

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 291 vs. \(2 (145) = 290\).
time = 0.40, size = 291, normalized size = 2.01 \begin {gather*} -\frac {3 \, {\left (c^{2} f^{2} g^{2} n^{2} - 2 \, c d f g^{2} n^{2} e + d^{2} g^{2} n^{2} e^{2}\right )} \log \left (F^{f g n x + g n e} b + a\right ) \log \left (F\right )^{2} - {\left (d^{2} f^{3} g^{3} n^{3} x^{3} + 3 \, c d f^{3} g^{3} n^{3} x^{2} + 3 \, c^{2} f^{3} g^{3} n^{3} x\right )} \log \left (F\right )^{3} + 3 \, {\left (d^{2} f^{2} g^{2} n^{2} x^{2} + 2 \, c d f^{2} g^{2} n^{2} x + 2 \, c d f g^{2} n^{2} e - d^{2} g^{2} n^{2} e^{2}\right )} \log \left (F\right )^{2} \log \left (\frac {F^{f g n x + g n e} b + a}{a}\right ) + 6 \, {\left (d^{2} f g n x + c d f g n\right )} {\rm Li}_2\left (-\frac {F^{f g n x + g n e} b + a}{a} + 1\right ) \log \left (F\right ) - 6 \, d^{2} {\rm polylog}\left (3, -\frac {F^{f g n x + g n e} b}{a}\right )}{3 \, a f^{3} g^{3} n^{3} \log \left (F\right )^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x+c)^2/(a+b*(F^(g*(f*x+e)))^n),x, algorithm="fricas")

[Out]

-1/3*(3*(c^2*f^2*g^2*n^2 - 2*c*d*f*g^2*n^2*e + d^2*g^2*n^2*e^2)*log(F^(f*g*n*x + g*n*e)*b + a)*log(F)^2 - (d^2
*f^3*g^3*n^3*x^3 + 3*c*d*f^3*g^3*n^3*x^2 + 3*c^2*f^3*g^3*n^3*x)*log(F)^3 + 3*(d^2*f^2*g^2*n^2*x^2 + 2*c*d*f^2*
g^2*n^2*x + 2*c*d*f*g^2*n^2*e - d^2*g^2*n^2*e^2)*log(F)^2*log((F^(f*g*n*x + g*n*e)*b + a)/a) + 6*(d^2*f*g*n*x
+ c*d*f*g*n)*dilog(-(F^(f*g*n*x + g*n*e)*b + a)/a + 1)*log(F) - 6*d^2*polylog(3, -F^(f*g*n*x + g*n*e)*b/a))/(a
*f^3*g^3*n^3*log(F)^3)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (c + d x\right )^{2}}{a + b \left (F^{e g} F^{f g x}\right )^{n}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x+c)**2/(a+b*(F**(g*(f*x+e)))**n),x)

[Out]

Integral((c + d*x)**2/(a + b*(F**(e*g)*F**(f*g*x))**n), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x+c)^2/(a+b*(F^(g*(f*x+e)))^n),x, algorithm="giac")

[Out]

integrate((d*x + c)^2/((F^((f*x + e)*g))^n*b + a), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (c+d\,x\right )}^2}{a+b\,{\left (F^{g\,\left (e+f\,x\right )}\right )}^n} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c + d*x)^2/(a + b*(F^(g*(e + f*x)))^n),x)

[Out]

int((c + d*x)^2/(a + b*(F^(g*(e + f*x)))^n), x)

________________________________________________________________________________________